import { defineStore } from 'pinia'

export const useUserStore = defineStore('user',{
	state:() => {
		return {
			nickName:'nickName',
		}
	},
	persist:{
		storage:{
			getItem:uni.getStorageSync,
			setItem:uni.setStorageSync,
		}
	},
	actions:{
		nickNameChange(){
			this.nickName = '改变了'
		}
	}
})